package org.jumiz.javafx.databases;

import org.h2.tools.Server;

public class H2Application {

    public static void start(String[] args) {
        try {
            Server.createTcpServer(
                    "-tcp",
                    "-tcpAllowOthers",
                    "-tcpPort",
                    "9998"
            ).start();

            Server.createWebServer(
                    "-web",
                    "-webPort",
                    "8082"
            ).start();

        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public static void main(String[] args) {
        H2Application.start(args);
    }
}
